<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Modeling</title>
<?php echo importCSS("template.css|style.css|font.css");?>
<?php echo importJS("jquery.min.js|input.js");?>
</head>
<body>
<?php echo L('LANG_FONT');?>
<script> var THEME_ROOT = '__ROOT__/themes/' ; </script>
<div class="header clearfix">
	<div class="center">
    	<a href="<?php echo U('/index');?>"><div class="logo">
        	<img src="__ROOT__/themes/images/logo.png" />
        </div></a>
        <div class="menu">
        	<a href="<?php echo U('/work/index');?>" <?php echo ($nav_menu=="work"?" class='now'":"");?>><div><?php echo L('HEADER_WORK');?></div></a> <!-- class="now"-->
            <a href="<?php echo U('/contractor/index');?>" <?php echo ($nav_menu=="contractor"?" class='now'":"");?>><div><?php echo L('HEADER_CONTRACTOR');?></div></a>
            <a href="<?php echo U('/space/index');?>" <?php echo ($nav_menu=="space"?" class='now'":"");?>><div><?php echo L('HEADER_MY_SPACE');?></div></a>
        </div>
        <div class="search">
        	<div><img src="__ROOT__/themes/images/search.png" /></div>
        	<form method="get" action="<?php echo U('/work/index');?>" >
            <input type="text" id="search" name="name" value="<?php echo L('HEADER_SEARCH');?>" onfocus="if(value=='<?php echo L('HEADER_SEARCH');?>') {value=''} setStyleOne(this.id)" onblur="if (value=='') { value='<?php echo L('HEADER_SEARCH');?>' } setStyleTwo(this.id)"/>
            </form>
        </div>
        <?php if ($_cUser) { ?>
        <div class="signafter">
        	<a href="<?php echo U('/signout');?>"><div  class="outbutton"><?php echo L('HEADER_SIGN_OUT');?></div></a>
        	<a href="<?php echo U('/space/index');?>"><div class="word"><?php echo ($_cUser["username"]); ?></div></a>
        </div>
        <?php } else { ?>
        <div class="sign">
        	<a href="<?php echo U('/join');?>"><div><?php echo L('HEADER_JOIN');?></div></a>
            <a href="<?php echo U('/signin');?>"><div><?php echo L('HEADER_SIGN_IN');?></div></a>
        </div>
        <?php } ?>
    </div>
</div>
<div class="clear"></div>

<div class="main center clearfix">
	<img src="__ROOT__/themes/images/earth.png" id="terrett" class="terretourne">
    <div class="popularbox clearfix">
    	<div class="tittle"><?php echo L('INDEX_POPULAR');?></div>
        <a class="button more" href="#"><?php echo L('INDEX_MORE');?></a>
        <div class="clear"></div>
        <div class="example clearfix">
        	<a href=""><div class="popular single">
            	<div class="img"><img src="__ROOT__/themes/images/ex-1.png" /></div>
                <div class="name">House</div>
            </div></a>
            <a href=""><div class="popular single">
            	<div class="img"><img src="__ROOT__/themes/images/ex-2.png" /></div>
                <div class="name">Elephant</div>
            </div></a>
            <a href=""><div class="popular single">
            	<div class="img"><img src="__ROOT__/themes/images/ex-3.png" /></div>
                <div class="name">Car</div>
            </div></a>
            <a href=""><div class="popular single">
            	<div class="img"><img src="__ROOT__/themes/images/ex-1.png" /></div>
                <div class="name">House</div>
            </div></a>
        </div>
    </div>
    <div class="clear"></div>
    <div class="latestbox clearfix">
    	<div class="tittle"><?php echo L('INDEX_LATEST');?></div>
        <div class="clear"></div>
        <div class="example">
        	<a href=""><div class="latest single">
            	<div class="img"><img src="__ROOT__/themes/images/ex-1.png" /></div>
                <div class="name">House</div>
            </div></a>
            <a href=""><div class="latest single">
            	<div class="img"><img src="__ROOT__/themes/images/ex-2.png" /></div>
                <div class="name">Elephant</div>
            </div></a>
            <a href=""><div class="latest single">
            	<div class="img"><img src="__ROOT__/themes/images/ex-3.png" /></div>
                <div class="name">Car</div>
            </div></a>
            <a href=""><div class="latest single">
            	<div class="img"><img src="__ROOT__/themes/images/ex-1.png" /></div>
                <div class="name">House</div>
            </div></a>
        </div>
    </div>
</div>

<div class="footer">

</div>
</body>
</html>